package dfbz.homework9;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;

public class Test {
    public static void main(String[] args) {
//        List<String> strings = new List<>();
        HashMap<Object, Object> map = new HashMap<>();
        map.put("a",1);
        map.put("b",2);
        map.put("c",3);
        HashSet<Object> hashSet = new HashSet<>();
        hashSet.add(1);
        hashSet.add(2);
        hashSet.add(3);
        hashSet.add(4);
        List<String> objects = new ArrayList<>();
        objects.add("a");
        objects.add("b");
        objects.add("c");
        objects.add("d");
        objects.forEach(value-> System.out.println(value));
        hashSet.forEach(value-> System.out.println(value));
        map.forEach((k,v)-> System.out.println(k+"："+v));
    }
}
